package com.mc.service;

import com.mc.mapper.UserMapper;
import com.mc.mapper.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements IUserService {
    @Autowired
    UserMapper userMapper;

    public User query(Integer id) {
        User user = new User();
        user.setId(id);
        return userMapper.selectOne(user);
    }
}
